<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="prc.*" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- saved from url=(0045)http://localhost/phpBB3/ucp.php?mode=register -->
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-gb" xml:lang="en-gb">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="content-style-type" content="text/css">

<title>Forum</title>

<link href="./stuff/style.css" rel="stylesheet" type="text/css" media="screen, projection">

</head>

<body class="section-ucp ltr">

<div id="wrap">
	<a id="top" name="top" accesskey="t"></a>
	<div id="page-header">
		<div class="headerbar">
			<div class="inner"><span class="corners-top"><span></span></span>
			<div style="height: 125px;">
			<table id="site-description" style="width:auto;"><tbody><tr>
				<td style="width:243px;"><img src="./stuff/site_logo.png" width="243" height="104" alt="" title=""></td>            <td><div style="vertical-align:middle;"><h1 style="font-size:21px!important;">Forum</h1>
            <p style="font-size:12px!important;"></p></div>
				</td>
			</tr></tbody></table>
        </div>
			<span class="corners-bottom"><span></span></span></div>
		</div>
		<div class="navbar">
			<div class="inner"><span class="corners-top"><span></span></span>
			<ul class="linklist navlinks">
				<li class="icon-home"><a href="index.jsp" accesskey="h">Board index</a> </li>
			</ul>
			<ul class="linklist rightside">			
			<%
							User user=UserManagement.getCurrentUser(session);
							if(user!=null){
								out.println("<li class=\"icon-logout\"><a href=\"userManagement.jsp\">Account Management</a></li>");
								if(user.getGroup().equals("admin"))
									out.println("<li class=\"icon-logout\"><a href=\"forumAdmin.jsp\">Admin panel</a></li>");
								out.println("<li class=\"icon-logout\"><a href=\"login.jsp\" title=\"Logout\" accesskey=\"x\">Logout ["+user.getUsername()+"]</a></li>");
							}else
							{
								out.println("<li class=\"icon-logout\"><a href=\"registration.jsp\" accesskey=\"x\">Register</a>  <a href=\"login.jsp\" title=\"Login\" accesskey=\"x\">Login</a></li>");
							}
						%>
			</ul>
			<span class="corners-bottom"><span></span></span></div>
		</div>
	</div>
	<a name="start_here"></a>
	
<%

if(session.getAttribute("username")==null)session.setAttribute( "username", "");
if(session.getAttribute("firstname")==null)session.setAttribute( "firstname", "");
if(session.getAttribute("lastname")==null)session.setAttribute( "lastname", "");


if(user!=null){
	java.util.Date date=user.getLastVisitDate();
	if(date!=null)
		out.println("<p class=\"right rightside\">Last visit was: "+date+"</p>");	
}
%>
<p>It is currently <%= new java.util.Date() %> <br />